package com.hellogood.work.evaluate.shared.services;

import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.hellogood.work.evaluate.shared.po.Customer;

@RemoteServiceRelativePath("CustomerService")
public interface CustomerService extends RemoteService{
	public static class Util {
		private static CustomerServiceAsync instance;

		public static CustomerServiceAsync getInstance() {
			if (instance == null) {
				instance = GWT.create(CustomerService.class);
			}
			return instance;
		}
	}	
	
	public int getTotalNumber();
	
	public List<Customer> getList();	
	
	public String modify(Customer c, boolean isModiy);
}
